import request from '@/utils/request'

// 查询用户设备信息列表
export function listUserDevice(query) {
  return request({
    url: '/business/userDevice/list',
    method: 'get',
    params: query
  })
}

// 查询用户设备信息详细
export function getUserDevice(id) {
  return request({
    url: '/business/userDevice/' + id,
    method: 'get'
  })
}

// 新增用户设备信息
export function addUserDevice(data) {
  return request({
    url: '/business/userDevice',
    method: 'post',
    data: data
  })
}

// 修改用户设备信息
export function updateUserDevice(data) {
  return request({
    url: '/business/userDevice',
    method: 'put',
    data: data
  })
}

// 删除用户设备信息
export function delUserDevice(id) {
  return request({
    url: '/business/userDevice/' + id,
    method: 'delete'
  })
}

// 导出用户设备信息
export function exportUserDevice(query) {
  return request({
    url: '/business/userDevice/export',
    method: 'get',
    params: query
  })
}